The phrase "to cook the flour" means to heat it up in order to remove the raw taste and make it suitable for eating or using in recipes.